package com.lin.chapter12.force;

public class GamePlayerProxy  implements IGamePlayer {
	private IGamePlayer gamePlayer;

	public GamePlayerProxy(String name) {
		try{
			gamePlayer = new GamePlayer(name);
		}catch (Exception e){

		}
	}

	@Override
	public void login(String user, String password) {
		this.gamePlayer.login(user, password);
	}

	@Override
	public void killBoss() {
		this.gamePlayer.killBoss();
	}

	@Override
	public void upgrade() {
		this.gamePlayer.upgrade();
	}
}
